{include file="admin_header.html"}
<div class="main">
	<div class="main-content">
		<div class="container-fluid">
			<div class="row">
				<div class="col-md-12">
					<div class="panel">
						<div class="panel-heading">
							<h3 class="panel-title">企业微信设置</h3>
						</div>
						<div class="panel-body">
							<form class="form-auth-small" action="admin.php?ac=setting" method="post">
								<input type="hidden" name="weixin" value="weixin"/>
								<input type="text" name="appid" class="form-control" value="{$weixin.appid}" placeholder="请输入企业微信的corpid">
								<br/>
								<input type="text" name="appsecret" class="form-control" value="{$weixin.appsecret}" placeholder="请输入企业微信的corpsecret">
								<br/>
                                <input type="text" name="agentid" class="form-control" value="{$weixin.agentid}" placeholder="请输入企业微信应用的agentid">
								<br/>
								<input type="text" name="tpl_msg" class="form-control" value="{$weixin.tpl_msg}" placeholder="模板消息ID，模板标题：智能钥匙提取通知">
								<br/>
								<button type="submit" class="btn btn-primary">保 存</button>
							</form>
						</div>
					</div>
				</div>
				
				<div class="col-md-12">
					<div class="panel">
						<div class="panel-heading">
							<h3 class="panel-title">微门禁API接入设置</h3>
						</div>
						<div class="panel-body">
							<form class="form-auth-small" action="admin.php?ac=setting" method="post">
								<input type="hidden" name="wmj" value="wmj"/>
								<input type="text" name="appid" class="form-control" value="{$wmj.appid}" placeholder="请输入微门禁提供的APPID">
								<br>
								<input type="text" name="appsecret" class="form-control" value="{$wmj.appsecret}" placeholder="请输入微门禁提供的APPSECRET">
								<br>
								<input type="text" name="aeskey" class="form-control" value="{$wmj.aeskey}" placeholder="如果需要加密的话，请输入微门禁提供的AES加密密钥">
								<br>
								<button type="submit" class="btn btn-primary">保 存</button>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="clearfix"></div>
{include file="admin_footer.html"}
